﻿namespace Refract.Composition
{
    using System;
    using System.ComponentModel.Composition.Hosting;

    public static class Container
    {
        #region Fields

        private static CompositionContainer _current;
        private static Object _mutex = new Object();

        #endregion Fields

        #region Properties

        public static CompositionContainer Current
        {
            get { return _current; }

            set
            {
                lock (_mutex)
                {
                    _current = value;
                }
            }
        }

        #endregion Properties
    }
}